package pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import pay.config.DataBaseName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("vip_history")
public class VipHistoryEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private String userId;

    @TableField("create_time")
    private Date createTime;

    @TableField("days")
    private Integer days;

    /**
     * vip来源
     * 1 充值
     * 2 平台赠送
     * 3 拉新
     */
    @TableField("vip_source")
    private Integer vipSource;

    @TableField("operator_id")
    private String operatorId;

    @TableField("order_id")
    private Integer orderId;

    @TableField(exist = false)
    private SystemUserAppEntity operatorUser;
}